<template>
	<view class="top">
		<image src="../../static/54665_02.gif" mode="" class="zuotu"></image>
		<text class="city">沈阳 ▼</text>
		<input type="text" placeholder="成绩查询" />
		<image src='../../static/8977.png' mode="" class="youtu"></image>
	</view>
	<view class="nav">
		<view class="wuxuan">
			科一
		</view>
		<view class="wuxuan">
			科二
		</view>
		<view class="wuxuan">
			科三
		</view>
		<view class="wuxuan">
			科四
		</view>
		<view class="wuxuan">
			拿本
		</view>
	</view>
	<view class="banner">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="(item,i) in banners" :key="i">
				<image :src="item.path"></image>
			</swiper-item>
		</swiper>
	</view>
	<view class="daban">
		<view class="centerleft">
			<view class="xiaobiao">
				<image src="../../static/54665_14.gif" mode=""></image>
				<view>VIP课程</view>
			</view>
			<view class="xiaobiao">
				<image src="../../static/54665_20.gif" mode=""></image>
				<view>专项练习</view>
			</view>
			<view class="xiaobiao">
				<image src="../../static/54665_25.gif" mode=""></image>
				<view>图标技巧</view>
			</view>
			<view class="xiaobiao">
				<image src="../../static/54665_28.gif" mode=""></image>
				<view>考前秘籍</view>
			</view>
		</view>
		<view class="center">
			<view class="circleblue">

			</view>
			<view class="circlegreen">

			</view>

		</view>
		<view class="centerright">
			<view class="xiaobiao">
				<image src="../../static/54665_16.gif" mode=""></image>
				<view>精简500题</view>
			</view>
			<view class="xiaobiao">
				<image src="../../static/54665_21.gif" mode=""></image>
				<view>直播课</view>
			</view>
			<view class="xiaobiao">
				<image src="../../static/54665_24.gif" mode=""></image>
				<view>真实考场模拟</view>
			</view>
			<view class="xiaobiao">
				<image src="../../static/54665_29.gif" mode=""></image>
				<view>错题·收藏</view>
			</view>
		</view>
	</view>
	<view class="foot">
		<view class="foot_top">
			<view class="sixiao">
				<view class="wenzi">
					500题直播
				</view>
				<image src="../../static/54665_36.gif" mode=""></image>
			</view>
			<view class="sixiao">
				<view class="wenzi">
					速记口诀
				</view>
				<image src="../../static/54665_42.gif" mode=""></image>
			</view>
			<view class="sixiao">
				<view class="wenzi">
					扣满12分
				</view>
				<image src="../../static/54665_33.gif" mode=""></image>
			</view>
			<view class="sixiao">
				<view class="wenzi">
					恢复驾驶证
				</view>
				<image src="../../static/54665_39.gif" mode=""></image>
			</view>
		</view>
	</view>
	<view class="qukaoshi">
		<image src="../../static/8999.png" mode=""></image>
	</view>
	<view class="beijing">
		<view class="show">
			<view class="shang">
				科一教你快速做题 <text>更多 ></text>
			</view>
			<view class="zhong">
				<image src="../../static/78657.png" mode=""></image>
				<view class="wenziyou">
					<view class="wenzi">
						老师教你窍门 效率更高
					</view>
					<view class="zhibo">
						直播中
					</view>
				</view>
			</view>
			<view class="xia">
				<view class="fensi">
					<image src="../../static/786.png" mode=""></image>
					<text>三小时精华课</text><text class="jian">▶</text>
				</view>
				<view class="fensi">
					<image src="../../static/785796.png" mode=""></image>
					<text>三小时精华课</text><text class="jian">▶</text>
				</view>
				<view class="fensi">
					<image src="../../static/45645645.png" mode=""></image>
					<text>三小时精华课</text><text class="jian">▶</text>
				</view>
				<view class="fensi">
					<image src="../../static/786424856.png" mode=""></image>
					<text>三小时精华课</text><text class="jian">▶</text>
				</view>

			</view>
		</view>
	</view>
	<view class="beijingkeer">
		<view class="shower">
			<view class="shang">
				科一重难点突破 <text>更多 ></text>
			</view>
			<view class="slider-container">
				<view class="slider">
					<view class="slider-item">

					</view>
					<view class="slider-item">

					</view>
					<view class="slider-item">

					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	import API from "../../api/index.js"
	export default {
		data() {
			return {
				id: '',
				banners: [],
			}
		},

		onLoad() {
			this.getBanners()
		},
		methods: {
			async getBanners() {
				let res = await API['list']('kaoshi1')
				console.log(res, '轮播图')
				this.banners = res.data.data
			}
		}
	}
</script>

<style>
	.top {
		display: flex;

	}

	.zuotu {

		height: 2rem;
		width: 3rem;
	}

	.youtu {
		height: 1.5rem;
		width: 2rem;
		margin-top: 0.4rem;
	}

	.city {
		height: 2rem;
		line-height: 2rem;
		margin-left: 15px;
	}

	.top input {
		border: 1px solid #f8f8f8;
		border-radius: 20px;
		background-color: #f8f8f8;
		margin-left: 25px;
		width: 15rem;
		height: 2rem;
		text-indent: 2em;
		background-image: url('../../static/4809795a177f03d28419621e7616ad2.png');
		background-size: 8%;
		background-repeat: no-repeat;
		background-position: 2%;
	}

	.nav {
		display: flex;
		justify-content: space-around;
		margin-top: 0.8rem;

	}

	.wuxuan:hover {
		font-size: 20px;
		text-decoration: underline;
	}

	.banner {
		text-align: center;
		margin-top: 0.8rem;

	}

	.banner image {
		width: 95%;
		height: 5rem;

	}

	.daban {
		display: flex;
	}

	.daban image {
		width: 2rem;
		height: 2rem;
	}

	.xiaobiao {
		width: 10rem;
		text-align: center;
		margin-top: 2.5rem;
	}

	.center {
		box-sizing: border-box;
	}

	.circleblue {
		width: 7.1rem;
		height: 7.1rem;
		border-radius: 50%;
		background-color: #2facff;
		margin-top: 3rem;
		border: 0.4rem dotted #e2f9ff;
	}

	.circlegreen {
		width: 7.1rem;
		height: 7.1rem;
		border-radius: 50%;
		background-color: #32deb8;
		margin-top: 5rem;
		border: 0.4rem dotted #e0fef6;
	}

	.foot_top {
		margin-top: 2rem;
		display: flex;
		justify-content: space-around;
	}

	.foot_top image {
		width: 5rem;
		height: 4rem;
		margin-top: 1rem;
	}

	.sixiao {
		width: 6rem;
		height: 8rem;
		background-color: #f6f7fc;
		text-align: center;
	}

	.wenzi {
		margin-top: 1rem;
	}

	.qukaoshi {
		width: 100%;
		text-align: center;
	}

	.qukaoshi image {
		width: 95%;
		height: 12rem;
	}

	.beijing {
		width: 100%;
		height: 16rem;
	}

	.beijing .show {
		background-color: #fff0ed;
		width: 95%;
		height: 16rem;
		margin: 0 auto;
		border-radius: 1rem;
	}

	.show .shang {
		font-size: 1.2rem;
		font-weight: 100;
		width: 100%;
		height: 3rem;
		box-sizing: border-box;
		padding-top: 0.9rem;
		display: flex;
		justify-content: space-between;
	}

	.show .shang text {
		font-size: 0.8rem;
		color: darkgray;
		font-weight: normal;
	}

	.zhong {
		height: 8rem;
		width: 100%;
		display: flex;
	}

	.zhong image {
		height: 7rem;
		width: 14rem;
	}

	.wenziyou {
		margin-left: 2rem;
	}

	.zhibo {
		width: 5rem;
		height: 2rem;
		border-radius: 2rem;
		background-color: #f96243;
		text-align: center;
		padding-top: 0.25rem;
		box-sizing: border-box;
		margin-top: 2rem;
	}

	.xia {
		height: 5rem;
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
	}

	.xia image {
		width: 1rem;
		height: 1rem;
		padding-top: 0.5rem;
	}

	.xia .fensi {
		width: 10rem;
		height: 2rem;
		border-radius: 2rem;
		background-color: #fff;
		display: flex;
		justify-content: space-around;
		box-sizing: border-box;
	}

	.fensi text {
		padding-top: 0.3rem;
	}

	.fensi .jian {
		color: #f96243;
	}

	.beijingkeer {
		width: 100%;
		height: 16rem;
		margin-top: 0.5rem;
	}

	.beijingkeer .shower {
		background-color: #e2f9ff;
		width: 95%;
		height: 16rem;
		margin: 0 auto;
		border-radius: 1rem;
		overflow: hidden;
	}

	.beijingkeer .shang {
		font-size: 1.2rem;
		font-weight: 100;
		width: 100%;
		height: 3rem;
		box-sizing: border-box;
		padding-top: 0.9rem;
		display: flex;
		justify-content: space-between;
	}

	.beijingkeer text {
		font-size: 0.8rem;
		color: darkgray;
		font-weight: normal;
	}

	.shower .slider-container {
		width: 100%;
		height: 13rem;
		overflow-x: hidden;
		position: relative;
	}

	.slider-container .slider {
		display: flex;
		width: 80%;
	}

	.shower .slider-item {
		background-color: #f8f8f8;
		min-width: 100%;
		height: 13rem;
		border-radius: 1rem;
		/* flex: 0 0 auto; */
		margin: 1rem;
		box-sizing: border-box;
	}
</style>